package com.shujia.day02;

public class SuanShuTest1 {
    public static void main(String[] args) {
        //请分别计算出a,b,c的值
        int a = 10;
        int b = 10;
        int c = 10;

        a = b++;// a:10 ,b:11 ,c:10
        c = --a;// a:9 ,b:11 ,c:9
        b = ++a;// a:10 ,b:10 ,c:9
        a = c--;// a:9 ,b:10 ,c:8
        System.out.println("a: " + a); // 9
        System.out.println("b: " + b); // 10
        System.out.println("c: " + c); // 8
    }
}
